package com.struc.td;

import com.badlogic.gdx.graphics.g2d.Sprite;

public class Talent {
	private String name;
	private Sprite sprite;
	private boolean unlocked;
	private Sprite checkbox;
	private Sprite checkboxchecked;
	public Talent(String name, Sprite sprite, boolean unlocked) {
		this.name = name;
		this.sprite = sprite;
		this.unlocked = unlocked;
		checkbox = new Sprite(StaticTextures.talentCheckbox);
		checkboxchecked = new Sprite(StaticTextures.talentCheckboxChecked);
	}
	public String getName() {
		return name;
	}
	public Sprite getSprite() {
		return sprite;
	}
	public boolean isUnlocked() {
		return unlocked;
	}
	public Sprite getCheckbox() {
		if (unlocked)
			return checkboxchecked;
		return checkbox;
	}
	public void toggle() {
		unlocked = !unlocked;
	}
}

